# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=zutils
pkgver=1.9
pkgrel=1
pkgdesc="A collection of utilities able to process any combination of compressed and uncompressed files transparently"
url="https://www.nongnu.org/zutils/zutils.html"
arch="all"
arch="" # Seems to fail with cryptic gzip errors
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
checkdepends="bzip2 gzip"
source="https://download.savannah.gnu.org/releases/zutils/zutils-$pkgver.tar.lz
	noconflict.patch"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		CXXFLAGS="$CXXFLAGS"
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="563d34c896ad381e3eb84233b07dcda7a60edffb1ed7954f1fbf8f7a9629ae6fa30fb0e31877d9bf29985b9856d9400e64fa297ccc959591a3cd327a31a1c700  zutils-1.9.tar.lz
854ce41cbecb36e76c2565dcfe3749fcd67378f9e83c382c5619cb16ae0405f77ecdc59d60f8105b301b7a7772d6778e2e3ff1cd3db162c3661f33024f1ec66b  noconflict.patch"
